import request from '@/utils/request'

// 查询护理内容列表
export function listNurseContent(query) {
  return request({
    url: '/business/nurseContent/list',
    method: 'get',
    params: query
  })
}

// 查询护理内容详细
export function getNurseContent(nurseId) {
  return request({
    url: '/business/nurseContent/' + nurseId,
    method: 'get'
  })
}

// 新增护理内容
export function addNurseContent(data) {
  return request({
    url: '/business/nurseContent',
    method: 'post',
    data: data
  })
}

// 修改护理内容
export function updateNurseContent(data) {
  return request({
    url: '/business/nurseContent',
    method: 'put',
    data: data
  })
}

// 删除护理内容
export function delNurseContent(nurseId) {
  return request({
    url: '/business/nurseContent/' + nurseId,
    method: 'delete'
  })
}

// 新增护理内容
export function nurseContentApproval(data) {
  return request({
    url: '/business/nurseContent/approval',
    method: 'post',
    params: data
  })
}
